import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SBattlefieldScore
// did
export class SBattlefieldScore extends IMessageBase {
  constructor(autoreg = false) {
    
    super();if (autoreg) {
      MessageManager.instance().regist(this);
    }
    return;
  }

  public /* override */ getType(): int {
    return this._type;
  }

  public /* override */ clone(): IMessageBase {
    return new SBattlefieldScore();
  }

  public /* override */ __write(arg1: SerializeStream): void {
    arg1.writeInt(this.scoreCamp1);
    arg1.writeInt(this.scoreCamp2);
    arg1.writeInt(this.scoreCamp3);
    return;
  }

  public /* override */ __read(arg1: SerializeStream): void {
    this.scoreCamp1 = arg1.readInt();
    this.scoreCamp2 = arg1.readInt();
    this.scoreCamp3 = arg1.readInt();
    return;
  }

  public /* const */ _type: int = 92;

  public /* var */ scoreCamp1!: int;

  public /* var */ scoreCamp2!: int;

  public /* var */ scoreCamp3!: int;

  public static /* var */ _regist: SBattlefieldScore = new SBattlefieldScore(
    true
  );
}
